package com.project.projectdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class DemoApplication extends SpringBootServletInitializer{

	
	/**
	 * main方法加载
	 * @param args
	 */
	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}

	/**
	 * 
	 */
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		System.out.println("--------- tomcat启动spring ---------");
		return builder.sources(DemoApplication.class);
	}
	
	
	
}
